package com.dk.service.impl;

import com.dk.mapper.UserMapper;
import com.dk.pojo.User;
import com.dk.pojo.UserExample;
import com.dk.service.LoginService;
import com.dk.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User login(String username) {
        User user = userMapper.selectByUserName(username);
        return user;
    }
}
